#ifndef PARAMWIDGET
#define PARAMWIDGET

#include <qlayout.h>
#include <qslider.h>
#include <qframe.h>
#include <qgroupbox.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qwidget.h>
#include <qvariant.h>
#include <qdialog.h>
#include <vector>

class Objet;

class ParamWidget : public QWidget
{
	Q_OBJECT

public:
	ParamWidget(QWidget* newparent = 0, const char* name = 0, Qt::WindowFlags fl = 0);
	~ParamWidget();
	void updateInfo(Objet *obj);

	std::vector<QGroupBox> boxes;
	std::vector<QSlider*> sliders;
	std::vector<QLineEdit*> lines;

	 QFrame* frame;

public slots:
	void slidermoved();
	void lineEditReturn();

protected:
	QVBoxLayout* ParamWidgetLayout;
	QVBoxLayout* frameLayout;
	QGridLayout* groupBoxLayout;
	QWidget* m_parent;

private:
	Objet *m_obj;
};

#endif
